package xcmg.device.dao.mapper.threeGuaranteesPur;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.threeGuaranteesPur.ThreeReverseDetailDO;
import xcmg.device.service.vo.threeGuaranteesPur.ThreeReverseDetailVO;

import java.util.List;

@Mapper
public interface ThreeReverseDetailMapper {
    int deleteByPrimaryKey(String id);

    int insert(ThreeReverseDetailDO record);

    ThreeReverseDetailDO selectByPrimaryKey(String id);

    int update(ThreeReverseDetailDO record);

    List<ThreeReverseDetailDO> list(ThreeReverseDetailVO model);

    int removeByInOrderList(@Param("orderList") List<String> orderList, @Param("orgId") String orgId);

    List<ThreeReverseDetailDO> selectByMainNo(@Param("reverseOrder") String reverseOrder, @Param("orgId") String orgId);

    int updateStateByOrder(@Param("reverseOrder") String reverseOrder, @Param("state") Integer state, @Param("orgId") String orgId);
}